package com.websocket;

import com.alibaba.fastjson.JSONObject;
import com.protos.Peer;

public interface wsCallBack {

    /**
     * 欲执行结果
     * @param flag
     * @param result 预执行结果
     */
    void preDoTransaction (Boolean flag, JSONObject result);

    /**
     * 确认是否出块
     * @param flag
     * @param block
     * @param result
     */
    void verifyBlock (Boolean flag, Peer.Block block, String result);
}
